package com.fjec.user.feign;

import com.fjec.common.enums.EnumSysCode;
import com.fjec.common.exception.BizException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

@Slf4j
@Component
public class MarketClientFallback implements MarketClient {

    @Override
    public Map<String, Object> getSessionInfo(Long userId, int busiType) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public Map<String, Object> getSessionInfoByUserId(Long userId) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public boolean savePersonal(Long userId, Long coopId, String nickName, String headPic) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public boolean updatePersonal(Long userId, String nickName, String headPic) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }
}
